// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router/index'
import store from './store/index'
Vue.config.devtools = true;
//引入fastclick
import FastClick from 'fastclick'
if ('addEventListener' in document) {
  document.addEventListener('DOMContentLoaded', function() {
    FastClick.attach(document.body);
  }, false);
}

//引入全局样式common.less
import '@/style/common.less'

//引入全局ui组件库vant
import './plugins/vant'

//引入rem
import "@/config/rem.js"

//引入全局过滤器
import "@/config/filters.js"

//全局注册swiper

import VueAwesomeSwiper from 'vue-awesome-swiper'

// swiper style
import 'swiper/css/swiper.css'

Vue.use(VueAwesomeSwiper, /* { default options with global component } */)
//配置二维码插件
import VueQriously from 'vue-qriously'
Vue.use(VueQriously)

Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
